<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('blog.home.index');
});


Route::get('/admin/index', function () {
    return view('admin.home.index');
});

Route::get('/admin/article/index', function () {
    return view('admin.article.index');
});

Route::get('/admin/article/add', function () {
    return view('admin.article.add');
});

Route::get('/admin/category/index', function () {
    return view('admin.category.index');
});

Route::get('/admin/comment/index', function () {
    return view('admin.comment.index');
});

Route::get('/admin/member/index', function () {
    return view('admin.member.index');
});

Route::get('/admin/site/index', function () {
    return view('admin.site.index');
});

Route::get('/admin/ad/index', function () {
    return view('admin.ad.index');
});

Route::get('/admin/adlist/index', function () {
    return view('admin.ad.adlist');
});

Route::group(['namespace' => 'Admin'], function () {
    Route::get('/admin/login',"LoginController@showPage");
});

